package com.wxh.back.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * (Rights)表实体类
 *
 * @author makejava
 * @since 2022-07-22 00:29:43
 */
@SuppressWarnings("serial")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Rights extends Model<Rights> {
    //权限id
    private String rightsId;
    //权限名称
    private String rightsName;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.rightsId;
    }
    }

